package com.gomtel.smartdevice.moudle.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;

/**
 * Created by Administrator on 2018/5/25 0025.
 *
 */
@Entity
public class CaloryDataInfo {

    //主键自增长
    @Id(autoincrement = true)
    private Long id;
    //用户
    private String userName;
    //日期
    @Unique
    private String day;

    private int caloryCurrent;     //卡路里标准

    public CaloryDataInfo(String userName, String day, int caloryCurrent) {
        this.userName = userName;
        this.day = day;
        this.caloryCurrent = caloryCurrent;
    }

    @Generated(hash = 1390897710)
    public CaloryDataInfo(Long id, String userName, String day, int caloryCurrent) {
        this.id = id;
        this.userName = userName;
        this.day = day;
        this.caloryCurrent = caloryCurrent;
    }

    @Generated(hash = 384751503)
    public CaloryDataInfo() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDay() {
        return this.day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public int getCaloryCurrent() {
        return this.caloryCurrent;
    }

    public void setCaloryCurrent(int caloryCurrent) {
        this.caloryCurrent = caloryCurrent;
    }




}
